package com.by.yz.mypersonal;

import android.os.Bundle;
import android.view.Gravity;
import android.widget.Toast;

import com.by.yz.R;
import com.by.yz.activity.base.BaseActivity;

/**
 * Created by 123 on 2016/10/7.
 */
public class PersonalNearPeopleActivity extends BaseActivity {

    private Toast toast=null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.personal_near_people);
        setToolbarTitle("附近的人");

        initView();
        initDatas();

    }

    private void initDatas() {

    }

    private void initView() {

        if(toast == null){
            toast = Toast.makeText(this, "暂无附近的人！", Toast.LENGTH_SHORT);
            toast.setGravity(Gravity.BOTTOM|Gravity.CENTER, 0, 0);
            toast.show();
        }

    }

//    @Override
//    public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true;
//        getMenuInflater().inflate(R.menu.mm, menu);
//        return true;
//    }

//    @Override
//    public boolean onOptionsItemSelected(MenuItem item) {
//        switch (item.getItemId()) {
//           case android.R.id.home:
//                Toast.makeText(this, "home", Toast.LENGTH_SHORT).show();
//                return true;
//            case R.id.m1:
//                Toast.makeText(this, "m1", Toast.LENGTH_SHORT).show();
//                break;
//            case R.id.m2:
//                Toast.makeText(this, "m2", Toast.LENGTH_SHORT).show();
//                break;
//
//        }
//        return super.onOptionsItemSelected(item);
//    }
}
